public class PlayerMoveState : PlayerState
{
    public PlayerMoveState(PlayerFSM manager, string animationName) : base(manager, animationName) { }

    public override void OnEnter()
    {
        base.OnEnter();
        parameter.currentSpeed = parameter.normalSpeed;
    }

    public override void OnUpdate()
    {
        base.OnUpdate();
        if (parameter.isHurt)
        {
            manager.TransitionState(StateType.Hit);
        }
        if(parameter.isClimb){
            manager.TransitionState(StateType.ClimbBegin);
        }
        if (parameter.isDash)
        {
            manager.TransitionState(StateType.Dash);
        }
        if (!parameter.isMove)
        {
            manager.TransitionState(StateType.Idle);
        }
        if (parameter.isJump)
        {
            manager.TransitionState(StateType.Jump);
        }
        if(parameter.isClickMeleeAttack){
            manager.TransitionState(StateType.MeleeAttack1);
        }
    }

    public override void OnFixedUpdate()
    {
        base.OnFixedUpdate();
        Move();
    }

    public override void OnExit()
    {
        base.OnExit();
    }
}
